﻿@model TGBTech.Core.Models.DanhMuc.DanhMuc

@{
    ViewBag.Title = "Danh mục";
}

<div class="portlet box blue">
    <div class="portlet-title">
        <div class="caption">
            Cập nhật tài khoản
        </div>
        <div class="tools">
            <a href="" class="collapse"></a>
            <a href="" class="reload"></a>
        </div>
    </div>
    <div class="portlet-body">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            <div class="form-horizontal">
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.Id)
                @Html.HiddenFor(mode => mode.State)

                <div class="form-group">
                    <label class="col-md-3 control-label">Tên danh mục</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-3 control-label">Loại</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(model => model.Type, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.Type)
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-offset-3 col-md-10">
                        <input type="submit" value="Cập nhật" class="btn blue" />
                    </div>
                </div>
            </div>
        }

    </div>
</div>
